<include file="../header" />
<body class="J_scroll_fixed">
    <script>


    </script>
<form class="well form-search" method="post" style="float:left" action="{:U('booking/index')}">
    <div class="search_type cc mb10">
        <div class="mb10">
        <span class="mr20">
            用户名称：<input type="text" name="name-like" value="{$name}" />
            预约日期：<input type="text" name="booking_time" class="input length_2 J_date" value="{$booking_time}" autocomplete="off">
            <br>
            产品名称：<input type="text" name="p#product_name-like" value="{$product_name}" />
            <button class="btn btn-primary" type="submit">搜索</button>
            <a class="btn" href="{:U('booking/index')}">重置</a>
        </span>
        </div>
    </div>
</form>
<div class="wrap J_check_wrap">
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th>订单号</th>
            <th>所属病症</th>
            <th>用户</th>
            <th>预约日期</th>
            <th>门店名称</th>
            <th>上门地址</th>
            <th>预约类型</th>
            <th>金额</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="orderList" item="vo">
            <tr>
                <td>{$vo.booking_id}</td>
                <td>{$vo.category_name}</td>
                <td>{$vo.name}-{$vo.sex}-{$vo.age}岁<br>{$vo.mobile}<br>医生：{$vo.doctor_name}<br>医院：{$vo.hospital_name}</td>
                <td>{$vo.booking_time}</td>
                <if condition="$vo.booking_type eq 1">
                    <td>{$vo.shop_name}</td>
                    <td></td>
                    <else/>
                    <td></td>
                    <td>{$vo.address}</td>
                </if>
                <td>
                    {:getEnumString($bookingTypeEnum, $vo['booking_type'])}&nbsp;&nbsp;
                </td>
                <if condition="$vo.money eq 0">
                    <td>0 元</td>
                    <else/>
                    <td>{$vo.money} 元</td>
                </if>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$page}</div>
</div>
<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>